﻿using System;
using System.Windows.Forms;

namespace Map_Creator
{
    public partial class RenameWindow : Form
    {
        public string name;

        public RenameWindow(string name)
        {
            InitializeComponent();

            textBox1.Text = name;
        }

        private void OK_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.OK;
            name = textBox1.Text;
            Close();
        }

        private void CloseButton_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.Cancel;
            Close();
        }
    }
}
